package com.lihepeng.leecode.thread;

import org.junit.Test;

import java.util.concurrent.*;

/**
 * java 信号量测试
 */
public class SemaphoreTest {
    @Test
    public void runTest(){
        ThreadPoolExecutor poolExecutor = new ThreadPoolExecutor(5, 5, 1, TimeUnit.SECONDS, new SynchronousQueue<>());
        Semaphore semaphore = new Semaphore(5);
        
    }
}
